package com.yidiandao.business.ui.adapter;

import android.content.Context;

import com.yidiandao.business.ui.widget.listview.CommonAdapter;
import com.yidiandao.business.ui.widget.listview.DisplayItemManager;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.ChooseGiftSingleListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.ChooseGiftTitleListItem;

/** 购物车-换购商品-Adapter */
public class ChooseGiftAdapter extends CommonAdapter<DisplayListItem> {

    public ChooseGiftAdapter(Context context) {
        super(context);
    }

    @Override
    protected void registerDisplayListItemMap() {
        DisplayItemManager.register(getAdapterTag(), ChooseGiftTitleListItem.class);
        DisplayItemManager.register(getAdapterTag(), ChooseGiftSingleListItem.class);
    }

    @Override
    protected String getAdapterTag() {
        return ChooseGiftAdapter.class.getSimpleName();
    }
}
